* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

/* Header Section Design */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0px 10px 20px -17px rgba(0, 0, 0, 0.75);
    -webkit-box-shadow: 0px 10px 20px -17px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 10px 20px -17px rgba(0, 0, 0, 0.75);

}

.top-bar {
    background-color: #002347;
    display: flex;
    justify-content: space-between;
    padding: 5px 50px;
    font-size: 12px;
    align-items: center;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
}

.social-links a:hover,
.top-nav a:hover {
    color: #2ecc71;
}

.top-nav a {
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    position: relative;
    text-decoration: none;
    color: white;
    padding: 10px 15px;
}

.top-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #2ecc71;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.top-nav a:hover::after {
    width: 100%;
}


.top-nav {
    display: flex;
    gap: 20px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background: #fff;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 250px;
}


.menu ul {
    list-style: none;
    display: flex;
}

.menu ul li {
    margin: 0 15px;
}

.menu ul li a {
    text-decoration: none;
    color: #000033;
    font-weight: bold;
    font-size: 14px;
}

.menu ul li a:hover {
    color: #1e8449;
}

.dropdown {
    position: relative;
}

.menu h3 {
    text-align: center;
    text-transform: uppercase;
    color: #000033;
}

.menu-column h3 {
    color: #000080;
}

.menu-column ul {
    display: flex;
    flex-direction: column;
}

.menu-column ul li a {
    color: #333333;
}

.menu-column ul li a:hover {
    color: #1e8449;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -300%;
    background-color: #e3f2fd;
    min-width: 800px;
    min-height: 200px;
    max-height: auto;
    padding: 20px;
    gap: 30px;
    border-radius: 10px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.dropdown:hover .mega-menu {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    visibility: visible;
    animation: mega-menu-zoom 1s ease-in 0s 1 alternate;
}

@keyframes mega-menu-zoom {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.mobile-only-footer {
    display: none;
}

.apply-btn {
    background-color: #000080;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.apply-btn:hover {
    background-color: #1e8449;
    color: #ffffff;
    transition: 0.4s;
}

.hamburger {
    display: none;
}


/* Banner Design */
.banner {
    padding: 40px;
    margin-top: 9.6rem;
    height: 50vh;
    background: url(https://www.pub.ac.bd/wp-content/uploads/2025/11/Home-Banner-Background.jpg) center center/cover no-repeat;
}


.admission-text h2 {
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 900;
    text-shadow: none;
    background: linear-gradient(90deg, #1C6AE7 0%, #7E41E9 25%, #E53959 50%, #FF6E40 75%, #1C6AE7 100%);
    background-size: 400% auto;
    animation: optimized-gradient-move 3.0s infinite linear;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    color: #6a5acd;
    font-size: 3rem;
}

@keyframes optimized-gradient-move {
    0% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.spring-text {
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 900;
    text-shadow: none;
    background: linear-gradient(90deg, #1C6AE7 0%, #7E41E9 25%, #E53959 50%, #FF6E40 75%, #1C6AE7 100%);
    background-size: 400% auto;
    animation: optimized-gradient-move 3.0s infinite linear;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    animation: optimized-gradient-move 3.0s 4s infinite linear;
    font-size: 60px;
}




/* Main part Design */

/* Section 01 Design */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #fff;
    font-size: 1.2rem;
    font-weight: 900;
}

.link-card {
    border: 2px solid #1e8449;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    background-color: #f8fafc;
    padding: 25px 40px;
    width: 250px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}

.link-card a {
    text-decoration: none;
    color: #000033;
}

.link-card a i {
    color: #1e8449;
}

.link-card:hover {
    background-color: rgb(227, 223, 223);
    transition: all 0.3s ease;
}


/* Section 02 */
.about-section {
    padding: 80px 50px;
    background-color: #f4f7fa;
    overflow: hidden;
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-media {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 2s cubic-bezier(0.19, 1, 0.22, 1),
        transform 2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.image-wrapper {
    position: relative;
    z-index: 2;
    border-radius: 5px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e74c3c;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    scale: 1.05;
    transition: 0.3s;
}

.about-content {
    flex: 1;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 2s cubic-bezier(0.19, 1, 0.22, 1),
        transform 2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}


.about-media.show,
.about-content.show {
    opacity: 1;
    transform: translateX(0);
}


.about-content h2 {
    font-size: 36px;
    color: #002347;
    margin-bottom: 20px;
    font-weight: 800;
}

.about-content p {
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 32px;
    color: #1e8449;
    margin-bottom: 5px;
}

.stat-item h3 span {
    color: #777777;
    font-size: 24px;
}

.stat-item p {
    color: #888;
    font-weight: bold;
    font-size: 14px;
}



/* Section 03 */
.info-section {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.info-section .container {
    display: flex;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.events-container {
    flex: 2;
}

.notice-container {
    flex: 1;
}

.section-title h3 {
    font-size: 18px;
    color: #444;
    margin-bottom: 5px;
}

.title-line {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1e8449;
    margin-bottom: 25px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.event-card {
    background-color: #E3F2FD;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.event-card:hover{
    box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.5);
}

.event-card.show {
    opacity: 1;
    transform: translateX(0);
}

.event-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.event-desc {
    padding: 15px;
    font-size: 1rem;
    color: #000080;
    font-weight: bold;
    min-height: 80px;
}

.event-desc a{
    text-decoration: none;
}

.notice-list {
    background-color: #E3F2FD;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.notice-item.show {
    opacity: 1;
    transform: translateX(0);
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #fff;
    gap: 15px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
    border-bottom: 2px solid #1e8449;
}

.date-box {
    background-color: #000080;
    color: white;
    padding: 5px 10px;
    text-align: center;
    border-radius: 3px;
    min-width: 50px;
}

.date-box .day {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.date-box .month {
    font-size: 10px;
}

.notice-text a {
    text-decoration: none;
    font-size: 1rem;
    color: #000080;
    font-weight: 600;
    margin-bottom: 3px;
}

.views {
    font-size: 11px;
    color: #666;
}

.view-btn {
    position: relative;
    padding: 10px 25px;
    border: 2px solid #1e8449;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #1e8449;
    text-decoration: none;
    display: inline-block;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.view-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1e8449;
    transition: all 0.4s ease;
    z-index: -1;
}

.view-btn:hover {
    color: white;
    border-color: #1e8449;
}

.view-btn:hover::before {
    left: 0;
}

.shadow-btn {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.shadow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



/* Section 04 */
.why-choose-pub {
    background-color: #000033;
    color: white;
    overflow: hidden;
    margin-top: 50px;
}

.why-container {
    display: flex;
    align-items: stretch;
}

.why-content {
    flex: 1.2;
    padding: 80px 70px 80px 100px;
}

.why-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.dash {
    width: 40px;
    height: 2px;
    background-color: white;
}

strong {
    color: #1e8449;
}

.why-header h2 {
    font-size: 36px;
    font-weight: 300;
}

.why-header h2 strong {
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    font-size: 28px;
    margin-top: 5px;
}

.feature-text h3 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

.feature-text p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #cbd5e0;
}

.why-image {
    flex: 0.8;
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive for Mobile */
@media (max-width: 992px) {
    .why-choose-pub {
        margin: 50px 0;
    }

    .why-container {
        flex-direction: column;
    }

    .why-content {
        padding: 50px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .why-image {
        height: 300px;
    }
}


/* Section 05 Design */
.messages-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    text-align: center;
}

.message-title {
    margin-bottom: 40px;
}

.message-title .dots {
    color: #003366;
    letter-spacing: 5px;
    display: block;
}

.message-title h3 {
    display: inline-block;
    font-size: 20px;
    color: #444;
    position: relative;
    padding-bottom: 5px;
}

.title-underline {
    display: block;
    width: 80px;
    height: 3px;
    background-color: #3498db;
    margin: 5px auto;
}

.message-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.message-card {
    background-color: #ffffff;
    border-radius: 20px;
    display: flex;
    padding: 30px 20px;
    width: 100%;
    max-width: 420px;
    border: 3px solid #000033;
    text-align: left;
    box-shadow: 0 4px 25px 10px rgba(0, 0, 0, 0.05);
    align-items: center;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 2s cubic-bezier(0.19, 1, 0.22, 1),
        transform 2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}


.message-card.show {
    opacity: 1;
    transform: translateX(-5px);
}

.message-card:hover {
    transform: translateX(-5px) scale(1.02);
    border: 3px solid #1e8449;
}

.card-left {
    flex: 0.8;
    text-align: center;
    padding-right: 15px;
}

.card-left img {
    width: 120px;
    height: 140px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.card-left h4 {
    font-size: 14px;
    color: #000033;
    margin-bottom: 5px;
    line-height: 1.2;
}

.designation {
    font-size: 12px;
    font-weight: 600;
    color: #1e8449;
    line-height: 1.3;
}

.card-right {
    flex: 1.2;
    padding-left: 20px;
    position: relative;
}

.quote-icon {
    font-size: 30px;
    color: #1e8449;
    margin-bottom: 10px;
    display: block;
}

.card-right p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1200px) {
    .message-card {
        width: 90%;
    }
}



/* Footer Section Design */
.detailed-footer {
    background: url(https://www.pub.ac.bd/wp-content/uploads/2022/09/PUB-Footer-BG.png), #001a57;
    background-size: cover;
    color: white;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-overlay {
    background: rgba(0, 26, 87, 0.95);
    padding: 60px 20px 20px 20px;
}

.f-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    gap: 30px;
}

.f-column {
    flex: 1;
    min-width: 250px;
}

.f-column h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 1px;
    color: white;
}

.contact-box .c-item {
    border: 2px solid #1e8449;
    padding: 12px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.c-item {
    display: flex;
    justify-content: center;
}

.c-item a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 1.2rem;
}

.c-item:hover {
    background-color: #1e8449;
    color: white;
    border: 2px solid white;
    transition: 0.6s;
}

.f-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.f-social a {
    width: 35px;
    height: 35px;
    border: 1px solid #1e8449;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.f-social a:hover {
    background: #1e8449;
    border-color: #1e8449;
}

.cyan-text {
    color: #1e8449;
    font-size: 18px;
    margin-bottom: 5px;
}

.loc-item {
    margin-bottom: 20px;
}

.loc-item h4 {
    font-size: 1.2rem;
}

.loc-item p {
    font-size: 1rem;
    line-height: 1.4;
    color: #ddd;
}

.map-widget img,
.google-map iframe {
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-note {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #001a57;
}

.copyright-bar {
    background: #000022;
    color: #bdc3c7;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
}



/* Mobile View Responsive Design (up to 768px) */
@media screen and (max-width: 1200px) {

    /* Menu Design */
    .menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: #E3F2FD;
        z-index: 1000;
        transition: 0.5s ease;
        overflow-y: auto;
        padding: 20px 0;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .menu.active {
        left: 0;
    }

    .mega-menu {
        position: static;
        min-width: 100%;
        display: none;
        flex-direction: column !important;
        background: #f4f4f4;
        padding: 10px;
        box-shadow: none;
    }

    .dropdown.open .mega-menu {
        display: none;
    }


    .menu ul {
        flex-direction: column;
    }

    .menu ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .menu ul li a {
        display: block;
        padding: 15px 20px;
    }

    .mobile-only-footer {
        display: block;
        margin-top: 30px;
        border-top: 1px solid #eee;
        padding-top: 20px;
        padding: 0 20px;
    }

    .mobile-top-nav a {
        display: block;
        padding: 10px 0;
        color: black;
        font-size: 13px;
        font-weight: bold;
        text-decoration: none;
    }

    .mobile-socials {
        display: flex;
        gap: 20px;
        margin-top: 15px;
    }

    .mobile-socials a {
        font-size: 20px;
        color: black;
    }

    .name {
        display: none;
    }

    /* Header Responsive */
    .top-bar {
        display: none;
    }

    .main-nav {
        padding: 10px 5px;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100vw;
    }

    .logo img {
        width: 150px;
    }

    .apply-btn {
        font-size: 0.8rem;
        background-color: #000066;
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
        text-decoration: none;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: #000066;
    }

    /* Banner Responsive */

    .banner {
        margin-top: 4rem;
        padding: 30px;
        height: 50vh;
        background-size: contain;
        background-position: left;
        position: relative;
    }

    .admission-text {
        text-align: center;
        position: absolute;
        top: 10%;
        left: 10%
    }

    .admission-text h2 {
        font-size: 1.2rem;
    }

    .admission-text h1 {
        font-size: 1.2rem;
    }

    .spring-text {
        font-size: 35px;
    }

    /* Quick Link Responsive */
    .quick-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 35px;
    }

    .link-card {
        width: 100%;
        max-width: 350px;
        padding: 15px;
        font-size: 18px;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* About Responsive */
    .about-section {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-section .container {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .about-content h2 {
        font-size: 2rem;
    }



    /* Info Section Responsive */
    .info-section .container {
        display: flex;
        flex-direction: column;
        padding: 0 10px;
        width: 100vw;
        height: auto;
    }

    .events-grid {
        display: flex;
        flex-direction: column;
    }


    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Message Section Responsive */
    .message-card {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .card-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}